﻿<%@ Page Language="C#" MasterPageFile="~/WebManager/manager.Master" AutoEventWireup="true" CodeBehind="ecolumnlist.aspx.cs" Inherits="BaoJian.WebManager.eshop.ecolumnlist" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="float: left">
        <div style="float: left; width: 350px">
            <asp:Label ID="Msg" runat="server" Visible="true"></asp:Label></div>
        <div style="float: right">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Doc" runat="server"
                Text="新建" OnClick="Doc_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
<%--            <asp:Button ID="Edit" runat="server" Text="编辑" OnClick="Edit_Click" />&nbsp;&nbsp;&nbsp;&nbsp;--%>
            <asp:Button ID="Delete" runat="server" Text="删除" OnClick="Delete_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
        </div>
    </div>
    <br />
    <br />
    <div div style="clear:both">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" BorderStyle="None"
            BorderWidth="1px" BorderColor="#CCCCCC" BackColor="White" CellPadding="3" Width="100%"
            AllowPaging="true" PageSize="6"       
            onpageindexchanging="GridView1_PageIndexChanging" >
            <HeaderStyle Font-Size="9pt" Font-Names="宋体" Font-Bold="True" ForeColor="Black" BackColor="SkyBlue">
            </HeaderStyle>
            <SelectedRowStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedRowStyle>
            <RowStyle ForeColor="Black" BackColor="White"></RowStyle>
            <Columns>
                <asp:BoundField DataField="SID" HeaderText="序号" ReadOnly="True" SortExpression="SID" />
                <asp:BoundField DataField="Name" HeaderText="产品名称" ReadOnly="True" SortExpression="Name" />
                 <asp:ImageField  HeaderText="图片"  DataImageUrlField="ImagePath"  DataImageUrlFormatString ="{0}" >
                        <ControlStyle Height="50px" Width="50px" />
                    </asp:ImageField>
                <asp:BoundField DataField="Price" HeaderText="价格" ReadOnly="True" />
                <asp:BoundField DataField="MarketPrice" HeaderText="市场价格" ReadOnly="True" />
                <asp:BoundField DataField="Discount" HeaderText="折扣" ReadOnly="True" />                     
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <input type="checkbox" id="selectCB" name="selectCB" value="<%# DataBinder.Eval(Container.DataItem,"PID")%>">
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <AlternatingRowStyle BackColor="#E0E0E0" BorderColor="DarkGray" BorderStyle="Dashed"
                BorderWidth="1px" />
        </asp:GridView>
 </div>   
         
         


</asp:Content>

